package com.ben.notebook.infrastructure.util;

/**
 * 错误信息响应枚举类
 * @date 2020-11-22
 */
public enum ErrorMsgEnum {
    /**未知错误*/
    UNKNOWN_ERROR("未知错误"),
    NOTE_NOT_EXIST("备忘录不存在"),
    REQUIRED_ITEM_EMPTY("必录项为空");

    private final String errorMsg;

    ErrorMsgEnum(String errorMsg){
        this.errorMsg  = errorMsg;
    }

    public String getErrorMsg() {
        return errorMsg;
    }
}
